package com.group02.community.entity.user;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_post")
public class SysPost {
  @TableId(type = IdType.AUTO)
  @ExcelProperty("岗位编号")
  private long postId;
  @ExcelProperty("岗位编码")
  private String postCode;
  @ExcelProperty("岗位名称")
  private String postName;
  @ExcelProperty("岗位排序")
  private long postSort;
  @ExcelProperty("岗位状态")
  private String status;
  @ExcelIgnore
  private String createBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ExcelIgnore
  private LocalDateTime createTime;
  @ExcelIgnore
  private String updateBy;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ExcelProperty("岗位更新时间")
  private LocalDateTime updateTime;
  @ExcelProperty("备注")
  private String remark;
  @ExcelIgnore
  private String isDelete;


}
